package com.glory.wxelectricitypda.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.LockersTakenOffShelvesBean;
import com.glory.wxelectricitypda.bean.RDRequisitionBean;

import java.util.List;

public class RDRequisitionAdapter extends BaseQuickAdapter<RDRequisitionBean.MATLISTDTO, BaseViewHolder> {
    public RDRequisitionAdapter( List<RDRequisitionBean.MATLISTDTO> data) {
        super(R.layout.adapter_lockerstakenoffshelves,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RDRequisitionBean.MATLISTDTO item) {
        helper.setText(R.id.boxNum,String.valueOf(helper.getAdapterPosition()+1));
        helper.setText(R.id.mLotId,item.getMLOTID());
        helper.setText(R.id.mainQty,String.valueOf(item.getMAINQTY()));
    }
}
